i = 3
while i > 0:
    user_name = input('姓名：')
    password = input('密码：')
    if user_name =='wsc' and password ==1:
        print('登录成功')
        break
    else:
        print('登录失败,还剩下'+str(i-1)+"次机会")
        i=i-1